<center>
	<a href="http://lisaframework.hu" target="_blank"><img src="/images/lisa.gif" alt="Lisa Framework" style="border: 0pt none ;"></a>
	<h1>LISA web application framework</h1>
	<p>LISA is an object oriented web application framework based on PHP 5.3 and Smarty template engine. LISA follows the MVC architecture.</p>
</center>    
    <h2>How can I see this?</h2>
    <p>
        So you downloaded, installed, Lisa. 
        <br/>
        <br/>
        You are seeing the first example page. Here is the basics how it work (without a few steps - for now)
        <br/>
        <br/>
        Lisa comes with friendly URL, every requests runs into the webroot/index.php.
        <br/>
        Then, it runs into the routing file config/urls.cfg. The file is like an array the key of the arrays are Regexp patterns for URI mathes, their values are the basic settings for the routing a match runned into, mainly the controller name, every other parameter is optional.
        <br/>
        <br/>
        So here is the code in it:
        <br/>
        <br/>
        <code>
        /** this file like a php file, and the elements in this files are elements of an array */
<br/>
        '/' => array(
            'controller' => 'StaticController',
            'function'   => 'showPage',
            'params'     => array(
                'template' => 'index'
            )
        ),
<br/>
        '/templatepreview/(.*)' => array(
            'controller' => 'StaticController',
            'function'   => 'showTemplate',
            'urlParams'  => array("template")
        )
        </code>
        <br/>
        This meas the "/" the system will create a StaticController class (found in libraries/Controller/StaticController.php) and tries to run a function it with some params.
        In that example: after the StaticController was constructed, showPage function with param template => index.
        <br/>
        See what happens in the Controller:
        <br/><br/>
        <code>
        public function showPage() {
            $this->_view->setLayout("default.tpl");
            $this->_view->setTemplate( (isset($_GET["template"]) ? "static/" . $_GET["template"] : "404") . ".tpl");
        }
        </code>
        <br/>
        default.tpl layout (at templates/layouts/default.tpl), and the template index.php (at templates/static/index.tpl) <strong>which you are reading now</strong> are feched by smarty and outputted the feched code.
        <br/><br/>
        This is how a page basicly is runned.
    </p>
	<p>Please visit: <a href="http://lisaframework.hu">http://lisaframework.hu/</a></p>
